//
//  NvDraftTableViewCell.h
//  NvSellerShow
//
//  Created by Meicam on 2017/3/20.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NvDraftModel.h"
#import "Utils.h"

@class NvDraftTableViewCell;

@protocol NvDraftTableViewCellDelegate <NSObject>

- (void)draftTableViewCell:(NvDraftTableViewCell*)cell openDraftModel:(NvDraftModel *)draftModel;

- (void)draftTableViewCell:(NvDraftTableViewCell *)cell updateCheckState:(BOOL)isChecked withDraftModel:(NvDraftModel *)draftModel;

@end

@interface NvDraftTableViewCell : UITableViewCell
@property (weak, nonatomic) id<NvDraftTableViewCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet UIImageView *markImageView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *markImageWidthConstraint;

@property (weak, nonatomic) IBOutlet UIImageView *thumbImageView;
@property (weak, nonatomic) IBOutlet UILabel *draftTypeLabel;
@property (weak, nonatomic) IBOutlet UILabel *draftCreatedTimeLabel;
@property (strong, nonatomic)NvDraftModel *draftModel;

@property (assign, nonatomic) BOOL isEditing;
@property (assign, nonatomic) BOOL isSelected;

- (void)fillDraftModel:(NvDraftModel *)model;

- (void)setEditingMode:(BOOL)isEditing;
- (void)setCheckedState:(BOOL)isChecked;
- (void)updateCheckState;

@end
